const {
  miniProgram
} = wx.getAccountInfoSync()

const {
  envVersion
} = miniProgram

let env = {
  baseURL: 'https://gmall-prod.atguigu.cn/mall-api'
}

switch (envVersion) {
  //开发版
  case "develop":
    env.baseURL = 'https://gmall-prod.atguigu.cn/mall-api'
    break;
    //体验版
  case "trial":
    env.baseURL = 'https://gmall-prod.atguigu.cn/mall-api'
    break;
    //正式版
  case "release":
    env.baseURL = 'https://gmall-prod.atguigu.cn/mall-api'
    break;

  default:
    env.baseURL = 'https://gmall-prod.atguigu.cn/mall-api'
    break;
}

export {env}